<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改推广游戏')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cpgame-edit" th:object="${cpGame}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">CP信息：</label>
                <div class="col-sm-8">
                    <input name="cpId" th:field="*{cpId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">游戏名称：</label>
                <div class="col-sm-8">
                    <input name="gameName" th:field="*{gameName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">游戏版本：</label>
                <div class="col-sm-8">
                    <input name="gameVersion" th:field="*{gameVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">前端接口调用验证key：</label>
                <div class="col-sm-8">
                    <textarea name="appKey" class="form-control">[[*{appKey}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">服务器端验签KEY：</label>
                <div class="col-sm-8">
                    <textarea name="serverSecret" class="form-control">[[*{serverSecret}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">jpushkey：</label>
                <div class="col-sm-8">
                    <input name="jpushKey" th:field="*{jpushKey}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类型(IOS,Android)：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b" required>
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">包名：</label>
                <div class="col-sm-8">
                    <input name="packageName" th:field="*{packageName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拼音代号：</label>
                <div class="col-sm-8">
                    <input name="code" th:field="*{code}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">付款通知地址：</label>
                <div class="col-sm-8">
                    <textarea name="notifyUrl" class="form-control">[[*{notifyUrl}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资源包URL：</label>
                <div class="col-sm-8">
                    <input name="sourceUrl" th:field="*{sourceUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">apk主包路径：</label>
                <div class="col-sm-8">
                    <input name="apkUrl" th:field="*{apkUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分成比例：</label>
                <div class="col-sm-8">
                    <input name="rate" th:field="*{rate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">微信平台的应用ID：</label>
                <div class="col-sm-8">
                    <input name="forumUrl" th:field="*{forumUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">礼包链接：</label>
                <div class="col-sm-8">
                    <input name="giftUrl" th:field="*{giftUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">攻略评测链接：</label>
                <div class="col-sm-8">
                    <input name="newsUrl" th:field="*{newsUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">QQ群号：</label>
                <div class="col-sm-8">
                    <input name="qqGroup" th:field="*{qqGroup}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资源编号(cwsk_resource_manage)：</label>
                <div class="col-sm-8">
                    <input name="resourceId" th:field="*{resourceId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">运营人员ID：</label>
                <div class="col-sm-8">
                    <input name="operationId" th:field="*{operationId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">代充配置，1为限制只能在一个会长那里代充，0为不限制：</label>
                <div class="col-sm-8">
                    <input name="incharge" th:field="*{incharge}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">1:普通;2:专服：</label>
                <div class="col-sm-8">
                    <select name="operType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否支持骏网卡支付：</label>
                <div class="col-sm-8">
                    <input name="payWithHeepay" th:field="*{payWithHeepay}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">通道费：</label>
                <div class="col-sm-8">
                    <input name="slottingFee" th:field="*{slottingFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">当前匹配的分成阶梯项：</label>
                <div class="col-sm-8">
                    <input name="rateLadder" th:field="*{rateLadder}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发行游戏，0：非发行，1：发行：</label>
                <div class="col-sm-8">
                    <input name="isIssue" th:field="*{isIssue}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">授权书地址：</label>
                <div class="col-sm-8">
                    <input name="authorUrl" th:field="*{authorUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">著作权地址：</label>
                <div class="col-sm-8">
                    <input name="copyrightUrl" th:field="*{copyrightUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">cpa分成比例：</label>
                <div class="col-sm-8">
                    <input name="cpaRate" th:field="*{cpaRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">cps分成比例：</label>
                <div class="col-sm-8">
                    <input name="cpsRate" th:field="*{cpsRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">公会分成比例：</label>
                <div class="col-sm-8">
                    <input name="guildRate" th:field="*{guildRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">素材包路径：</label>
                <div class="col-sm-8">
                    <input name="fodderUrl" th:field="*{fodderUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">注册单价：</label>
                <div class="col-sm-8">
                    <input name="unitPrice" th:field="*{unitPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">母包是否存在 ：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="apkStatus" value="">
                        <label th:for="apkStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">著作权状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="copyrightStatus" value="">
                        <label th:for="copyrightStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">null：</label>
                <div class="col-sm-8">
                    <input name="gameSize" th:field="*{gameSize}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">ISBN备案验证状态(1 已验证，0 未验证)：</label>
                <div class="col-sm-8">
                    <input name="isbnRecordState" th:field="*{isbnRecordState}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">文化备案验证状态(1 已验证，0 未验证)：</label>
                <div class="col-sm-8">
                    <input name="cultureRecordState" th:field="*{cultureRecordState}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">著作权号：</label>
                <div class="col-sm-8">
                    <input name="copyright" th:field="*{copyright}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">ISBN备案：</label>
                <div class="col-sm-8">
                    <input name="isbnRecord" th:field="*{isbnRecord}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">文化备案号：</label>
                <div class="col-sm-8">
                    <input name="cultureRecord" th:field="*{cultureRecord}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">游戏评级：</label>
                <div class="col-sm-8">
                    <input name="rating" th:field="*{rating}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">游戏类型 ：</label>
                <div class="col-sm-8">
                    <select name="gameType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">代充折扣，限0-1的2位小数：</label>
                <div class="col-sm-8">
                    <input name="generationDiscount" th:field="*{generationDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同编号：</label>
                <div class="col-sm-8">
                    <input name="contractNo" th:field="*{contractNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否开放第三方登录：</label>
                <div class="col-sm-8">
                    <input name="loginControl" th:field="*{loginControl}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充值则扣：</label>
                <div class="col-sm-8">
                    <input name="rechargeDiscount" th:field="*{rechargeDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否根据广告监控用户渠道归属(1 是、0 否)：</label>
                <div class="col-sm-8">
                    <input name="adveMonitoring" th:field="*{adveMonitoring}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关联cp分成阶梯(162,cwsk_cp_game_rate_ladder_v2)：</label>
                <div class="col-sm-8">
                    <input name="cpRateLadderId" th:field="*{cpRateLadderId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "cwsk/cpgame";
        $("#form-cpgame-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-cpgame-edit').serialize());
            }
        }
    </script>
</body>
</html>